import { http } from "@/utils/http";
import { ListResult } from "./models";


export interface signatureType {
  appId:string
  nonceStr:string
  timestamp:string
  url:string
  signature:string
}
export const configSignature = (url:string) => {
  return http.request<ListResult<signatureType>>("get", `/api/open/contact/work/getConfigSignature?url=${encodeURIComponent(url)}`);
};

export const agentConfigSignature = (url:string) => {
  return http.request<ListResult<signatureType>>("get", `/api/open/contact/work/getAgentConfigSignature?url=${encodeURIComponent(url)}`);
};



export interface corpAndAgentType {
  corpId:string
  agentId:number
}
export const getCorpAndAgentInfo = () => {
  return http.request<ListResult<corpAndAgentType>>("get", `/api/open/contact/work/getCorpAndAgentInfo`);
};